[Concept] [PATCH 03/12] buildman: Extract arch fixups from scan() into separate function