capture $? in local var to prevent losing it

We want the return code from the command executed just before _powerline_prompt, not the return code from [[.  Save the previous command's return code needs in a local variable before executing other commands.