Make use of LMOD_CMD if it is set

The Lmod init scripts set LMOD_CMD to the absolute path of the lmod executable.  Respecting LMOD_CMD makes it unnecessary to have lmod findable in PATH and also makes it easier to test new versions of lmod.