added local copy of rebar, fixed building of plugins