Test downloaded file for corruption and retry 5 times

These changes should fix #102.  
But if it fails 5 times?  I'd guess the next tar statement after the loop would just fail, but it's not very explicit.