Fixed broken selected test option.
Added build-nightly.sh script for building against nightly releases.