Fixes for battery widget

Since `os.execute` function returns a boolean value, the `==0` equality is unnecessary.