fix native OS version detection on macOS
fix native OS version detection on macOS

closes #4583

zig-lang/zig,raulgrell/zig,andrewrk/zig,zig-lang/zig,andrewrk/zig,raulgrell/zig,raulgrell/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig