Rename files to match another set of files with identical content but differing names, based on their hashes