Fix os major release check

The wrong grain ('os' vs 'osrelease') was used in 6256b1c. This commit fixes that.