Revert "Handle the case in getRootDirectory() when root dir has additional meta . and .. entries."

This reverts commit 701dc1279e0b9f49b70ede70063efe949fc19dde.