fix cache.dir setting