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.
Merge pull request #4 from Divran/patch-2

optimized pathfixmultipleslash