[close #29] Better Retry/Failure Support for Curl

A note on `/bin/bash -c`: http://stackoverflow.com/questions/14857407/ruby-trying-to-run-set-command