CDRIVER-4422 calc_release_version.py: remove --merged, plus improvements (#1060)
CDRIVER-4422 calc_release_version.py: remove --merged, plus improvements (#1060)

Detail of changes:
 * remove --merged option for compatibility with older versions of 'git'
 * fix bug that considered pre-release tags as higher than their
   succeeding releases (e.g., 1.22.0-beta0 was treated as a higher
   version tag than 1.22.0)
 * refactor to reduce code duplication, increase readability, and
   improve maintainability

Co-authored-by: Kevin Albertson <56185c174072c5b9d2bc60d4d380af34df005bd7@10gen.com>
mongodb/mongo-c-driver,jmikola/mongo-c-driver,jmikola/mongo-c-driver,mongodb/mongo-c-driver,mongodb/mongo-c-driver,rcsanchez97/mongo-c-driver,rcsanchez97/mongo-c-driver,rcsanchez97/mongo-c-driver,jmikola/mongo-c-driver,rcsanchez97/mongo-c-driver,rcsanchez97/mongo-c-driver,mongodb/mongo-c-driver,rcsanchez97/mongo-c-driver,jmikola/mongo-c-driver,jmikola/mongo-c-driver,rcsanchez97/mongo-c-driver,jmikola/mongo-c-driver,mongodb/mongo-c-driver,mongodb/mongo-c-driver,mongodb/mongo-c-driver,jmikola/mongo-c-driver