Switch to the new Path module for path manipulation.