Fixed #4569 by adding redirect support

Installer now mimics behavior set forth in shell scrip at http://get.docker.com