Using "move" synchronously for temporary files