Fixed homebrew prefix lookup on a non-mac OS