fixing mpi detection.