Correctly support the use of curl or wget