Wouldn't it be preferable to simply check if `python` is somewhere the current environment's `path`?