fix path identifications in case of paths that can contain 'index'