fix battery output formatting

Battery formatting now also works when only %i is in the format string.
Merge pull request #2 from glindste/fix_battery_format

fix battery output formatting