Fix dir creation