Ensure CACHE_DIR exists