Fix suspend with upowerd >= 0.99.1

Tested on Debian testing.
Without this patch PM is handled through  DeviceKit & UPower which combination can't suspend the system.
wrong coding style. please correct entire pr