Switched to temp_dir

Instead of creating hidden files, I’ve moved everything to /tempfiles