Make `root='/'` work cross-platform

If `root` already ends in `os.sep`, don't add another one