Move StripPath to PathUtils and clarify why we need custom version.