add cwd option
Merge pull request #2 from ngoldman/master

Add `cwd` option