Fix faulty homebrew installation detection