Fixed PS1 not always showing 0 as the previous command exit code