diff --git a/modules/hooks/file-dist/mpiexec.filedist b/modules/hooks/file-dist/mpiexec.filedist
index fca3c1f625cda6f1a79da5329d3e84f83290a9d5..6992eaf737bb81891508b0324f44391923786743 100644
--- a/modules/hooks/file-dist/mpiexec.filedist
+++ b/modules/hooks/file-dist/mpiexec.filedist
@@ -10,12 +10,8 @@ check_distribution_method() {
     result=255
     if test "x$I2G_MPI_TYPE" = "xmpich" -o "x$I2G_MPI_TYPE" = "xmpich2"; then 	
         if test "x${MPI_START_SCHEDULER}" = "xpbs" ; then
-            if test "x${MPI_MPIEXEC}" != "x" ; then
-                $MPI_MPIEXEC 2>&1 | grep -e "-\<np\>" > /dev/null 2>&1
-                status=$?
-                if test $status -ne 0 ; then
-                    result=0
-                fi
+            if test ${OSC_MPIEXEC} -eq 1 ; then
+                result=0
             fi
         fi
     fi