support directory names with spaces
don't fail when not using nomenclature or glossary
Merge pull request #2 from dominiquedevriese/master

support directory names with spaces