A while ago I split out the code in rustc's [`path_relative_from`](https://github.com/rust-lang/rust/blob/ae1b871cca56613b1af1a5121dd24ac810ff4b89/src/librustc_codegen_ssa/back/rpath.rs#L118) into https://github.com/Manishearth/pathdiff Perhaps we should just add that as a dependency? It's basically the same code. I'm totally okay with giving maintenance powers to other compiler folks.