Fixes #16 - remove superflous slashes in path components