NOBUG: Support both $module and $plugin for modules.