Update to new Path/Pathname API.