Set cwd when calling Popen in linux

As in my previous PR in the old repository, I made a change to set the CWD when executing Popen in Linux. I couldn't execute any K command prior to this change, since it was not possible to find the project.json without specifying that parameter.