Update makeglossaries function.