ensure that log dir exists