Update to get tests passing.

Most of this is useless because `realpath` doesn't work with custom
streams, which we use to test this. Ick.