fix for working directory problems.
Merge pull request #31 from npm/cwd-fix

fix for working directory problems