add ftdetect for erlang

Adds erlang mode to rebar.config files as well