Support trimming of multiple slashes in utils.joinPaths()