LoadTo.py] Improve checkDownload

Sometimes, files are not downloaded properly.
You receive a html-page instead of the desired file. It happens mostly on small files, but it isn't reproducable.
Restarting the link solves the issue.
Code cosmetics