Fix the logic in recursiveModuleCompileToSingleFile to always revert the
cwd no matter what.