build: use directories for plugins

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>