Fix line ending handling if autocrlf is false.

If you have set autocrlf=false in global git config you have some strange issues like init.bat is checked out with unix line endings and does not work properly. This patch adds autocrlf behavior as per-repository setting (see https://help.github.com/articles/dealing-with-line-endings).