Added new option nocurl for disabling upstream curl use