Fix `cwd` test

Fixes #7.
Merge pull request #9 from kevva/cwd

Fix `cwd` test