BUILDBOT: Clean up archive format selection code and migrate to config.