Simplify and rename find_sha1_file()