Can pass 'cwd' option to set working dir. Closes #4