When Python is not present, PYTHON=$(command -v "@PYTHON@") will exit the script with 1, prevent that by adding "|| true".