genconf: properly read the value of the "if" node