mergetool--lib: add functions for finding available tools