[COOK-3418] Don't store non temporary files in /tmp

* Actually fixes COOK-1447
* Doesn't store non temporary files inside of /tmp