Fix bug in doesOverride detection
Store the actual mod instance in ModuleContainer.mod