Fixing a bug with setting the cache folder.