make curl follow redirect when downloading patch