fix script, avoid stuck when cannot use wget