Register directives and update directives' path