added cwd option to run() command