Adjust paths in directives.