Add cwd support for the run command