Fixed creation of cwd