Our naïve assumption that sudo would always be in the PATH is incorrect. A new option should be introduced to the settings screen to avoid needing manual changes where sudo is not in the PATH.
See https://github.com/gilesdavis/tvs-moodle-parent-provisioning/blob/13bf5306dfcaa144aaa0afde263d0a0a5525aa05/includes/class.tvs-pmp-provisioner.php#L578