Changed OS check to only use the major version

OS conditional now only uses the major version number in its check for
additional flexibility, as well as more readable code.