Fixed frozen string issues with prepCacheDir