Fix upload module download by making curl follow redirects. Undo last change which was unnecessary.