Addressing breaking IFileSystem changes

@pranavkm
`Path.GetDirectoryName()` can return null when there is no parent directory. So there has to be an additional check `if (applicationRelativePath is null)` before doing a `Path.Combine`. That's why I did this.