[Concept] [PATCH 09/19] scripts: Move OS selection into the helper