Chdir in a block to dry up all method

- also, plays much nicer with FakeFS
Merge pull request #1836 from karlfreeman/block_local_chdir

Chdir in a block to dry up all method