made corresponding improvements for git in mass check-out script.