target_util: improve/rework u-boot-upgrade script