Corrected mpi check. Now one must use --with-mpi.