added extension to node.rb to output hostgroup as N variables, where N is the depth in the tree