trim version number from git