Look through all batteries present on system

Take more code from VirtualBox
Remove redundant enabling of cores when going to sleep

OS X does it anyway