bug fix: deal properly with ttynames other an tty00-tty99