Fix Windows issue with temp files