Replace only multiple /, no single / in path.
Merge pull request #7475 from tristanlins/patch-5