fixed creating log dir