define repo_root with bash and zsh compat