Use require.main.require for plugin wizard to support local plugin.