Moves environment variable testing to the correct place, so that copy operations now work if no preset path has been defined in the environment.
Moves environment variable testing to the correct place, so that copy operations now work if no preset path has been defined in the environment.

code-google-com/cortex-vfx,ruschelp/cortex-vfx,code-google-com/cortex-vfx,ruschelp/cortex-vfx,ruschelp/cortex-vfx,code-google-com/cortex-vfx,code-google-com/cortex-vfx