Added options `cwd` and `env` to exec