udpated curl version downgrade logic.