Replace \\ with / on Windows for temp paths