core: do not load plugins from empty directories

Change-Id: I715d5e729aa7b6ff6b125160e58aef61433f3b72
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>