more safety in cache dir deleting