Fixed a few bugs with the PS1 prompt