Add support for linux with upower

When pmset is not available try using upower which works on linux