Make tty tests less env-picky.