Update version check in zap.sh script for Java 9
Update version check in zap.sh script for Java 9

Change zap.sh script to also check that the major version (per JEP 223)
is greater than or equal to 9, also, drop early access suffixes from
the version when extracting the major version.

Related to #2602 - Java 9 (9-ea)

zaproxy/zaproxy,thc202/zaproxy,zaproxy/zaproxy,psiinon/zaproxy,gsavastano/zaproxy,meitar/zaproxy,zaproxy/zaproxy,zapbot/zaproxy,meitar/zaproxy,zapbot/zaproxy,zapbot/zaproxy,gmaran23/zaproxy,meitar/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,meitar/zaproxy,kingthorin/zaproxy,thc202/zaproxy,gsavastano/zaproxy,thc202/zaproxy,psiinon/zaproxy,kingthorin/zaproxy,kingthorin/zaproxy,psiinon/zaproxy,zapbot/zaproxy,zaproxy/zaproxy,kingthorin/zaproxy,meitar/zaproxy,gmaran23/zaproxy,Ali-Razmjoo/zaproxy,meitar/zaproxy,thc202/zaproxy,zapbot/zaproxy,zapbot/zaproxy,kingthorin/zaproxy,thc202/zaproxy,Ali-Razmjoo/zaproxy,psiinon/zaproxy,gmaran23/zaproxy,gsavastano/zaproxy,gsavastano/zaproxy,gsavastano/zaproxy,Ali-Razmjoo/zaproxy,gsavastano/zaproxy,kingthorin/zaproxy,psiinon/zaproxy,gmaran23/zaproxy,gmaran23/zaproxy,Ali-Razmjoo/zaproxy,gsavastano/zaproxy,thc202/zaproxy,kingthorin/zaproxy,zaproxy/zaproxy,gmaran23/zaproxy,thc202/zaproxy,Ali-Razmjoo/zaproxy,Ali-Razmjoo/zaproxy,zaproxy/zaproxy,zapbot/zaproxy,psiinon/zaproxy,psiinon/zaproxy,Ali-Razmjoo/zaproxy,meitar/zaproxy,meitar/zaproxy