Homogenize getPaths()

see issue #1992
Nice! ^_^