Properly determine equality of selectors created with &-foo.

Closes #1148
Avoid Pathname canonicalization errors on Windows.

Pathname doesn't canonicalize Windows directory separators, which was
causing #relative_path_from to fail. We now do this canonicalization
manually.

Closes #1135