Make sure there are no duplicate // in generated paths.