make sure the cache directory is set properly