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.
Merge pull request #19 from vincentbernat/fix/prepare-set-e

Make prepare.sh abort on first error.