Well, the code uses tty_dev_names = Dir["/dev/tty*"].grep_v(/ttyAMA/) so it actually should exist if it was found...