fix detecting installed homebrew packages