Avoid infinite recursion in `POWERLINE_OLD_PROMPT_COMMAND`

Fixes #678