Warn the user if AC adapter is unplugged

Performing an installation with AC unplugged is risky, warn the user and
let him decide.