Support for -referencing_dir search rule keyword; laying the foundation for search rules.