Creating missing logdirs at startup.