Initialize cache_dir if it does not exist yet