ModUtil::getName() inconsistencies fixed, closes #848.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Fixed tickets | #848
| License       | MIT