Appends a segment to an existing path.

import { ROOT_PATH, joinPath } from "estree-sentry";
// returns: "$.body"
joinDeepPath(ROOT_PATH, "body");