Check the SHA1 of a file