use ResourceFinder::nearMainConfig rule only when main-config file is local