Fix a few small bugs preventing the doesOverride module option being usable