Add rebar and fix how $(REBAR) is set in Makefile

Do not search for rebar in path in Makefile