Try download rebar using both curl and wget

Mac OSX don't have wget installed by default, it won't successfully run
tasks without using curl as fallback.