Refactoring the has_virtual_dir matcher method.