Tool to generate tool_dependencies.xml

Writing the large XML files is unpleasant, this should make that more
pleasant.