unnecessary loop

All you need to do is mkdir once on `cache_dir`.