call hash.end() after piping file through it
Merge pull request #6 from vast/hash-end-when-file-is-a-stream

Call hash.end() after piping file through it