fix dir creation permissions