ensure log dir exists