Exchange "cd foo &&" in test scripts with os.chdir