I'm not sure what you mean by Intel MPI v1.x vs v2.x (but Intel is probably to blame here, not you ;-)).

How do I figure out whether the `impi/4.1.0.027` module I have is v1.x or v2.x?

Can you point me to some documentation w.r.t. `--with-mpi`?