Generate libraries/tools lists from contributions.txt/legacy.txt