add support for older git versions (1.7.x)