use git config

* check for core.symlinks and os.name != nt
* check core.filemode before using chmod
Signed-off-by: Mark Mikofski <mark.mikofski@sunpowercorp.com>
Merge branch 'indexFilemodePatch' of github.com:mikofski/dulwich into indexFilemodePatch

Conflicts:
	dulwich/index.py