Fix test hang if curl is not installed
Indicate environment misconfiguration explicitly: error out if 'curl' is
not found instead of silently hanging in an infinite loop.
Reviewed By: cmatthews
Differential Revision: https://reviews.llvm.org/D144024