Fix os major release check

The wrong grain ('os' vs 'osrelease') was used in 6256b1c. This commit fixes that.
Merge pull request #5841 from terminalmage/quickfix

Fix os major release check