Added support for reading from stdin by passing "-" as the last arg (closes #368).