Fix `build_platform` detection