optimized pathfixmultipleslash

This optimization works because string.gsub will replace all occurrences of `//` at the same time, so you don't need to call it multiple times.