gnome-autogen.sh: Fix check if stdin is a tty

Commit 7f977b021462 introduced a check if stdin is ins't a tty, and
prevent printing terminal codes in this case. But the check was wrong
and always failed.

https://bugzilla.gnome.org/show_bug.cgi?id=726892