ensure log dir is kept