Fix git config - missing values don't return nil, they return empty strings.
Fix remote error checking and reporting.
Merge #7 from floatplane: "Fix git config"