Use git config instead of @{u} symbolic ref for better compatibility with Git for Windows. Fixes #281