makefiles: fix exclude parsing