Added option to use cURL when wget is not present