bash and zsh: smart addition ~/bin to $PATH