Correct bug in cache removal when the cache folder doesn't exist.