Tell curl to follow permanent redirects.
Merge pull request #2197 from tklein23/fix_curl_redirect

Tell curl to follow permanent redirects