Changing parse_git_dirty to new git version