ensure log dir