mxcl/homebrew — pull request #22094 by clemensg (2013-08-23 15:18:11+00:00)
Title: 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`..
If we take the return value of `which 'erl'` instead of just calling `erl` from sh, it works!