Fixed #4569

Added curl flags to mimic behavior utilized by the official docker install script (https://get.docker.com/). This will now follow 301 redirects and utilize SSL, if needed.