slightly more robust jldownload script

* Set wget retries to 0, like curl [fixes #3337].
* Check that curl/wget actually work, not just exist.
* Set some timeouts, to fail faster.