Added workaround for older git versions