Export buildPath()