Read from stdin when no file name is given

This is more like how the `mate` command works. If no file name is given and stdin is not the terminal, then read from stdin.
Support piping

When reading from stdin, if stdout is not the terminal, the output will
be written to stdout. This allows piping with the rmate command as can
be done with mate.

Example: ls *.tex | rmate | sh
Update version string