Fixed issue #1866: Check for newer version of tgit behind proxy

@ch3cooli: Wanna review and test before merging?