Interesting. I'm on a Mac and it doesn't happen. I'll just check if the output file exists, and if it doesn't, do those 3 fs calls.