Follow redirects on curl|sh installer script

Closes #4673