Fixing the bug when cache_file dir doesn't exist