general functions peco-cd() and peco-open()