fix curl cmd check