On macos there is no `python2`, but `python` and `python2.7`. So I guess this needs to be updated in the way of checking if `python2` exits (`which python2`) and if yes, use it, otherwise set it to `python`. I expect that only distro having `python3` are shipping `python2`, old distros with python 2.x only, likely don't have `python2`.