Use shutil.which() and fix version.
Generate metadata as python module.