Fix to check piped
Merge pull request #166 from syohex/fix_piped_stdin

Fix to check piped