honor github redirects with curl -L