fixed issue of doubly scanning directories for plugins, now only LIBDIR is searched for plugins