fixing crash when working directory ceases to exist
Merge pull request #23 from jbergknoff/master

Fix crash when working directory ceases to exist