elixir: fixed detection of homebrew installed erlang

If `/usr/local/bin` is in the users `.zshrc` or similar custom config, but not in `sh`'s PATH, Erlang is not detected because it can't find `erl` ? Or it is just a path issue in homebrew.

But if we take the return value of `which 'erl'`, which we are already calling, it works!