Adding sha1sum method with r14/r15 support 

@lowks commit with, hopefully, a fix for r14/r15.