Changed based upon comments on the PR. Removed an unused and forgotten variable which was added when diagnosing the build problem. And changed to tee the command and env to the console and the log file.
Changed based upon comments on the PR.
Removed an unused and forgotten variable which was added when
diagnosing the build problem. And changed to tee the command and
env to the console and the log file.

mistifyio/mistify-os,trisk/mistify-os,trisk/mistify-os,trisk/mistify-os,mistifyio/mistify-os,mistifyio/mistify-os