tg.sh: use --no-deref when returning to a detached HEAD