git branch on $PS1 and workaround for glitches in qt guis