Updated the nightly.rb and nightly.sh scripts