Fix branch always being shown in git prompt on some systems