contrib/completion: extract common diff/difftool options