Fixes to the nightly build process.