Remove the mv flag from environment code.

* Env code flags removed.
* Additional cleanup.
* Turn off mv on by default.
This one is missing the comment like the other ones have.