removed unnecessary sudo to os user switch

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>
added version check before upgrade

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>