Check for curl before checking for wget.