detect script directory to let zsh usable without having `powerline` in PATH