Add env and cwd options

closes #1