fixed bug in temp location for preserveFiles

files were all being placed in the root dir of the temp folder