Make battest.sh more efficient

I used egrep to reduce the number of times ioreg is called, which ironically reduces battery usage.
Merge pull request #8 from jedberg/patch-1

Make battest.sh more efficient