fix condition for homebrew