fix duplicate pluginDir