don't wait for stdin unless attached to a tty

otherwise ex.: "check_vmware_esx | less" will fail to output and exit.

Signed-off-by: Sven Nierlein <sven@nierlein.de>