Added log dir creation