scripts/create-package: simplify get_version function