Remove Path::getBasename.