Follow redirects with curl.

The github api changed to use a new domain as per:
  https://developer.github.com/changes/2014-04-25-user-content-security/

This commit updates the scripts to follow redirects with curl so this
doesn't break.