Revert "update rebar to 2.5.1; Makefile use local one"

This reverts commit a538182260eca3f61cbc3d86c5016428304643e3.