fix brew detection