Fixed errors if acpitool isn't installed on linux

Currently, when acpitool isn't installed, I get an error every time my prompt tries to call battery_pct:
```
battery_pct:1: command not found: acpi
```

This change fixes the error by guarding the call to acpi with a check that it's actually installed and executable.