[build][bugs] compile rules graph: fix disambiguator and don’t use repositioning if selector is empty