fixes huge bug with `on-ac-power?` for Mac OS X