Just checked, this is sufficient also with Lmod, both rely on `$LOADEDMODULES`