Given that osmajor is just major version + 4, could be a little less repetitive via:

`osmajor = MacOS.version.to_s[-1..-1].to_i + 4`, and error out if that's greater than 12.