Handle binary downloads

Also a more reliable fix for #2
Merge pull request #3 from turadg/patch-1

Handle binary downloads