also support MVAPICH2 in mpi_cmd function