zshrc: Added a missing test on OSX battery function
zshrc: little fixes

Missing local variable
Changed a '! -z' to '-n' test