bash prompt: use bash builtins to find out rebase state