use wget for download if available, else use curl