cd-traverse: fix cd ..pattern

This patch fixes GH-9, related to cd_traverse_ancestor().
Merge pull request #11 from vivien/fix-cd-ancestor

cd-traverse: fix cd ..pattern