Temporarily alter ENV['PWD'] while running commands

This will help us make sure that both commands that use Dir#pwd, and
the ones that use ENV['PWD'] will correctly execute inside the sandbox.
Merge pull request #16 from motns/working_directory_fix

pull request for issue #15