a couple minor 'tweaks' to the plugin system so that it works with npm installed plugins