Fix downloader not working with curl