Change git updater use git commands

Switched to real git commands, using lad1337/XDM as example.
+ minor stuff
Add downloaded update file corruption check
Add extra log lines

Add stdin to subprocess.Popen to prevent WindowsError: [Error 6] The handle is invalid