fix curl detection