Addressing breaking IFileSystem changes

@pranavkm
> Path.GetDirectoryName() can return null when there is no parent directory

When does this happen?

`Path.GetDirectoryName("some-dir") => empty string`