[linux-pam] Test also whether the tty is in the /sys/class/tty/console/active file.