use $SUDO for sudo

We use profiles instead of sudo in our enviroment, so we want to be able to configure the build system to use elevated privileges via pfexec instead of sudo. This is potentially useful for others as well, hence this PR.