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.