fix setting icons for file and dir nodes: make sure it is always set regardless of constructor used