r: Add checksum

Fix maintainer brainfart.

Fixes #18191.
bugfix: use /usr/bin/sw_vers to determine osx version

current behaviour uses SDKSettings.plist to determine osx version but this file is only available when XCode is installed.