Fall back on require.resolve to find plugins.

When loading plugins, this means the local and global node_modules directories
will be searched after the project and plugin/ directories.

This change facilitates the independent distribution of plugins using npm.