Trim more tag data when extracting git version.
Prevent continuous appending of data to .gitignore