lib/bash: Fix bug in acpi check.