add support for piping regular files as stdin

Closes #39