sha1_file: make read_info_alternates static