fix getCollectionName() to properly fetch the name out of uri, regardless of collection name path element count