Fix pwd collapsing in shell prompt