build: correct the android build checks
Currently, only Darwin and Linux are supported as build hosts. Correct the
check for the cross-compiled standard library build. This matches the condition
used in the SDK configuration. Move the SDK configuration step to after the
validation and the configuration of the primary variant.