Fixed bug with process cwd