Corrections to parent dir creation. Delete array correctly.