fix curl/wget detection and usage