Another fix for git directory on update