Fixed output dir creation