Refs #4762: Use minicurl instead of curl when the latter is not available in inventories
Refs #4762: Add downloadFile 2.0
Fixes #4762: Use minicurl if necessary in downloadFile