Restore the `dev.tty.legacy_tiocsti` check