Improved search for rebar in the Makefile

Trying to find rebar not only in the current directory as rebar may be used system-wide