This doesn't actually remove duplicates - `assertEquals(Os.tidyPath("/a//b"), "/a/b");` fails