create log dir if needed