handle the special case .shp.xml metadata naming convention

fix #921
@jj0hns0n can you test it?