zsh: fix git prompt update

Fixes an update bug. The prompt must be updated *before* it is drawn,
but only when the *last* command started with 'git'.