FIX: Always show the battery in a Darwin platform.

On OS X, the `battery` script doesn't show anything by itself, it
needs the flags `Charging` or `Dircharging`.

This commit's change make the `battery` command to show the status
when no flag is passed.
Use more idiomatic way to check if `$ext`is set.