Quick filter for edge cases like $path='/A///B///C'...

...that isn't filtered correctly