added makeglossaries option

I've added an option for makeglossaries. I followed the verbatim you used for makeindex with slight changes. Thanks for writing this script!