Make them to work in symbolic-linked dirs

Replaced --show-cdup with --show-toplevel