Added checks for battery status only on osx