making curl follow the github redirect