build-sys: Consolidate host_os handling