wscript: use _get_pkg_name and _get_pkg_version_defines from hwaf-rules