sha1_file: make check_and_freshen_file() non static