Fix telnet scripts