Fixes #4175: Handle too long name in Directive tree
Merge pull request #417 from VinceMacBuche/bug/4175/directive_name_too_long

Fixes #4175: Handle too long name in Directive tree