Parser for relative paths in directives