fix curl/wget detection