tg.sh: improve needs_update_check remote base handling