Fix nightly build script