coredump: format_corename: fix the "core_uses_pid" logic