curl should also fail on unsuccessful downloads
Merge pull request #1 from Celc/patch-3

curl should also fail on unsuccessful downloads