https > http in download.file (fixing error in download)