Switch to chdir() pair to bracket recorded code