dmconfig: fix leafref resolving

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>