add makeglossary support

Hi Guillaume,

Here are the change I made to your script to support the makeglossary tool.