read_sha1_file(): report correct name of packfile with a corrupt object