improved grep regex to define battery presence

makes battery functions work even when battery charging or full on Linux