tg.sh: allow --top-bases to work for remotes