If no name in metadata, be sure to scrub out appended directory information