Use jd_get_ks instead of creating explict temp var.
Special case to handle jd_path step into real structure.
Throw if we find a non-container on the path.

Equivalent to finding a file where a directory should be in the middle
of a path.