Fix calculating sibling directory paths for . and ..

Fixes issue #12.