Implements the new path format in rfcs!18 (merged). Should remain backwards compatible with the old format.