imrelp: disable legacy module config directives if new style was used