Extract plugins/ path lookup to pluginsPath() function in PluginAPI