fix yum-update call, exit early in case of errors