loader: fix plugin name duplicate check