Minor fixes in gsm init and balance check scripts