Fixes #4175: Handle too long name in Directive tree

http://www.rudder-project.org/redmine/issues/4175