Adapted the rebar build system.