Trying to fix the nonsense file write issue on windows