Computes the SHA1 of a given file.