[PATCH v2 06/60] buildman: Move fetch-arch code into a separate function