Don't parse directives when scanning
Build path and name mappings