erlang: consider `brew --prefix` as root dir

By default, erlang check's it's #{prefix} for installed applications,
however 3rd-party applications typically install to `brew --prefix`
instead.

This commit fixes this by crudely overwriting ROOTDIR in
lib/erlang/bin/{erl,start}.