Renaming root node and disambiguating empty directory from file