Fix hostname completion if multiple matches exist.