Improve Brew model detection