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>