Fix version comparison to use operatingsystemmajrelease