contrib/git-prompt.sh: handle missing 'printf -v' more gracefully