improve detection if brew needs sudo