Reverting to PWD environment variable method of getting working dir