Fix bash's awareness of prompt line length when showing an exit code

When the exit code was printed by a prompt command, bash got confused
about the prompt's line length (especially when working with history).
Putting it all into PS1 sorts it.