resolves #500 write to specified outfile even when input is stdin
Merge pull request #501 from mojavelinux/stdin-to-outfile

resolves #500 write to specified outfile even when input is stdin