Restore cwd after deployment