Fix homebrew detection issue