mergetool: use shell variable magic instead of `awk`