reset cwd after finish