Adding check for cache folder