use retry in curl if slug download hangs