Download update file only once and simplify version comparison [ci skip]