...and `getcwd` (unavoidably) resolves symlinks automatically (unlike the `pwd` shell command). Fixing this properly will require #21.