rtems-bsp-builder: Fix excluding builds.
Excluding builds was not working. This patch fixes that and it also correctly handles mixed builds.