fix hierarchical mns w.r.t. MPI installed with a dummy toolchain

enhanced version of #983 by @kcgthb (which should have been opened targeting `develop`
this is already part of the log message. no need to repeat it.