fixes for running git in batch