get tty file name dynamicly