Simplify rewriting .powenv for environment changes