Fix git execution with wrong working directory

Seems I fixed the problem related to opening files with methods like "gf", please review (eg. I bet the chdir can be done more elegantly in vimscript) and apply if you like :)