Curl should fail when it can't succeed

Noticed a problem where bitbucket isn't returning the correct file, this should fix it.