Implement tty device finding logic