fix creation of log dir