Fix MPI configuration bug.