Update bin/detect for Rebar.
Replace erlang build commands with ./bootstrap