tg: unset GIT_DIR when -C option encountered