Ensure log dir exists.