Fix for corrupted files

The download call was continuously saving the index file instead of
appending the file link to the web address.