make sure cache dir exists, just like log dir