Fix borked homebrew environment path finding function