The temporary paths (temp, lock, itemcache) are now detected automatically when used.