Made battery segment work on MacOSX

The battery segment were not working on my Macbook Pro because there are no ACPI, here is a working version using native apple tools
Especially you do not need to run another process (`awk`) to do what Python is able to do.