added device identificaiton logic to scripts needing different variables set corresponding to appropriate GSM adapter