meson: use Python script for version detection