set_metadata: cleanup extra version and add file to error output

Change-Id: Id15b243c7b25af12983afd59d09456671f6030fa
2 files changed