support specifying a cwd.

#66

@cwspear will you take a look at this and make sure I didn't do anything crazy?