support specifying a cwd.
Merge pull request #67 from stephenplusplus/master

support specifying a cwd.