Add -L to curl since raw.github.com will redirect.