Fix URIUtils::GetDirectory to use GetParentPath for getting file's parent dir.
comment GetDirectory indicate it will return dir itself if give it a dir.