Make xbatmon-simple tolerate the lack of "type" in power supply uevent fields, by guessing the type from the presence or absence of "present" (which appears for batteries) and "online" (which appears for mains). Closes: #689134.