detect script directory to make bash and zsh usable without having `powerline` in `$PATH`