Add missing handling of http redirections, which creates problems for new version checks and remote provisioning.