Save temporary files in a temporary directory