Homogenize getPaths()

see issue #1992