[backend] copy hash when patching the filename in the bininfo

It's cleaner this way...