Set env["PWD"] after chdir
Check if PWD env was set before reset
Merge pull request #2 from mozbugbox/set-env-PWD

if PWD is set in the environment, update it after chdir