differentiated the battery_prompt function for osx and linux and set to function properly on non battery powered machines