The sunet download host that has been used is closing down. Changing to use the official download urls  the components, and adding the -L options for curl to follow redirects.