Adding support for passing in the current working directory for the spawned process