* [macos] fix XCode simulator install behaviour
in https://github.com/actions/runner-images/commit/3929bc9f6e249a4731ad86b7b11793af9fec2d03
was introduced regression: simulators were installed only for latest
XCode-14 instance. However, they should be installed for all XCode-14
instances.
let us revert that behaviour
* improve code readability by moving version comparison outside loop
* rework brew installation for ARM64