fix mpi dir creation