Fix battery status output from awk

We were outputting two newline-terminated strings previously, instead build up one string and then output it once at the end.