mergetool: fix running mergetool in sub-directories