curl does not follow HTTP redirects automatically, so adding the

-L option which is needed by bitbucket, as the download is from a CDN