[zsh] Extract battery info by pattern

Don't assume that the battery info is always in the last line of "pmset
-g batt".  Instead search the output for the first InternalBattery
occurrence.