linux-user: Add generic env variable handling