Changing SHA1 sum calculation to be more portable.