better telnet prompt matching