os/mac: fix for major versions other than 10
os/mac: fix for major versions other than 10

mahori/brew,claui/brew,konqui/brew,claui/brew,EricFromCanada/brew,sjackman/homebrew,EricFromCanada/brew,mahori/brew,nandub/brew,Homebrew/brew,reitermarkus/brew,MikeMcQuaid/brew,JCount/brew,sjackman/homebrew,konqui/brew,JCount/brew,JCount/brew,vitorgalvao/brew,claui/brew,reitermarkus/brew,JCount/brew,vitorgalvao/brew,mahori/brew,sjackman/homebrew,mahori/brew,nandub/brew,Homebrew/brew,konqui/brew,nandub/brew,vitorgalvao/brew,sjackman/homebrew,nandub/brew,MikeMcQuaid/brew,EricFromCanada/brew,Homebrew/brew,Homebrew/brew,vitorgalvao/brew,EricFromCanada/brew,MikeMcQuaid/brew,MikeMcQuaid/brew,reitermarkus/brew,reitermarkus/brew,konqui/brew,claui/brew