Implemented auto creation of the cache directory