Bash: safer way to color prompt based on exit status