Ensure that process environment is inherited for TestFile.exec()