Added more check on a UNC path.