Small fix to enable reading from stdin as well.