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`
and then use 
```python
error_msg = ("No compiler available in toolchain %s used to install MPI library %s v%s, " % tup
                       "which is required by the active module naming scheme.")
```