fix path order issues for homebrew