Change the git attributes to something more solid

Other projects have shown to have problem with the original .gitattributes  especially when working cross-platform on it. These settings are more sane.