Improved error handling for missing git config