add support for QLogic MPI in mpi_cmd_for function