Added dir creation to init