Avoid undef warning in sprintf arguments

Improved log messages when superseding metadata