Improve upower auto-detection

If upower-glib is not present, then correctly disable support for it.