Change Tmp Folder to Dir Folder

Temporary files should stay inside the cache folder.