Improve command line mode detection for arguments vs. STDIN

Fix #163 by checking for ARGV.size instead of $stdin.tty?. This way, files can be passed by argument within a BASH or Ant script in addition to allowing STDIN.
Merge pull request #164 from amclin/master

Improve command line mode detection for arguments vs. STDIN