Remove chdir and add cwd to exec