Is it really ncessary to use osmajor here? We could just remove the osmajor alltogether if this is only cosmetics. 
We make it especially hard for older/newer OS X versions, if we hard-code stuff like in the if-elsif...-else statement.