fix running in shell issue, cwd was incorrectly set