Fix NightlyBuild creation code