It'd be interesting to see if `canonicalize()` would work here and for the case with '.' just above it. It may not even be necessary if `equivalent()` can handle '/' and '.' when testing against stored paths. Definitely tests are requried. http://llvm-reviews.chandlerc.com/D1134