fix jcache using the temp directory specified