Improve binary detection

Improve binary detection
This makes autocrlf conversion more accurate and more match core-git