Changed how the plugin directory is discovered through configs