Search target sources with correct keyword.

The problem was that the list of source files for targets like "target.arm" was always empty, because the target category name passed to `generate_source_list()` was wrong.
Don't know if this is a acceptable fix.