clone.sh: be more robust restarting a failed clone