framemd5cmp: handle output names more cleanly