bail when dealing with dir creation