Use git rev-parse instead of git log to get the version