bash: move final '\n' from the main loop to ps1_finalize for bash

mksh is not affected as it doesn't use 'read' and the '\n' had to be
removed anyway.