Have the setup-database.sh and configure-tomcat.sh scripts honour JAVA_OPTS too
Cope with shell metacharacters in JAVA_OPTS.