auto mkdir of cache dir.