Make prepare.sh abort on first error.

The script shouldn't be able to continue with a missing command or a
failure to download Oracle JDK.