fix broken platform filtering

Fixes plugin installation that is broken if an unsupported platform is
getting installed. Makes changes so that single level nodes are
collected from plugin.xml to generate actions. 

Signed-off-by: Gorkem Ercan <gorkem.ercan@gmail.com>