fixed bug in creation of CollectionAndDataObjectListingEntry objects

If the object represents a file, setPathOrName() sets the name or path
of the file relative to the parent directory.  If the object is a
collection, the method set the absolute path of the collection.