Improve build automation. Avoid dependence on rebar.