Fix homebrew conditional check