Silently fail when attempting to read stdin when it isn't a tty