post_version.py: stop using non-existent functions and fix commit message