Useful functions to change directories for Bash/Zsh and GNU screen/tmux.