add checking for curl command existence