ask curl to follow redirects.  also don't install heroku gem, it's deprecated