CLI: Only read stdin if there were no files supplied and not in tty mode.

Fixes #563
hm, it's already restored, by the time the test is done, so we don't need to do that ourselves