fix the `temp_folder`handling for windows