Try download rebar using both curl and wget

Since Mac OSX don't have wget installed by default, it won't successfully run
tasks without using curl as fallback.
Merge pull request #9 from Irio/next

Try download rebar using both curl and wget