Use $stdin for no log files are specified instead of ARGF

We don't change ARGV destructively on parsing command line options. So
ARGF doesn't work expectedly. ARGF uses command line options as input.