cleanup return values in merge function

A collection of lines if successful or empty string on failure can be
truth-tested directly

Also logging installed mods