Tweak how Java version is obtained in zap.sh
Tweak how Java version is obtained in zap.sh

Apply the command suggested in the issue report to obtain the Java
version, it's more robust when the environment variable _JAVA_OPTIONS is
defined (that is, Java version is correctly obtained independently of
the values that the variable has).

Fix #958 - Java version identification when an environment variable for
Java is exported

Ali-Razmjoo/zaproxy,rajiv65/zaproxy,zapbot/zaproxy,meitar/zaproxy,thc202/zaproxy,mustafa421/zaproxy,JordanGS/zaproxy,NVolcz/zaproxy,meitar/zaproxy,zapbot/zaproxy,JordanGS/zaproxy,Ali-Razmjoo/zaproxy,thc202/zaproxy,Harinus/zaproxy,Harinus/zaproxy,zapbot/zaproxy,rajiv65/zaproxy,gmaran23/zaproxy,JordanGS/zaproxy,NVolcz/zaproxy,Ali-Razmjoo/zaproxy,zaproxy/zaproxy,psiinon/zaproxy,gsavastano/zaproxy,psiinon/zaproxy,mustafa421/zaproxy,Ali-Razmjoo/zaproxy,zaproxy/zaproxy,meitar/zaproxy,gsavastano/zaproxy,NVolcz/zaproxy,kingthorin/zaproxy,Ali-Razmjoo/zaproxy,Harinus/zaproxy,kingthorin/zaproxy,kingthorin/zaproxy,Ali-Razmjoo/zaproxy,rajiv65/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,rajiv65/zaproxy,psiinon/zaproxy,Ali-Razmjoo/zaproxy,meitar/zaproxy,thc202/zaproxy,gmaran23/zaproxy,mustafa421/zaproxy,meitar/zaproxy,psiinon/zaproxy,zapbot/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,kingthorin/zaproxy,Harinus/zaproxy,kingthorin/zaproxy,JordanGS/zaproxy,mustafa421/zaproxy,NVolcz/zaproxy,NVolcz/zaproxy,gsavastano/zaproxy,NVolcz/zaproxy,gsavastano/zaproxy,gmaran23/zaproxy,thc202/zaproxy,mustafa421/zaproxy,psiinon/zaproxy,JordanGS/zaproxy,zaproxy/zaproxy,mustafa421/zaproxy,Harinus/zaproxy,mustafa421/zaproxy,psiinon/zaproxy,zapbot/zaproxy,JordanGS/zaproxy,meitar/zaproxy,JordanGS/zaproxy,gsavastano/zaproxy,meitar/zaproxy,gsavastano/zaproxy,zapbot/zaproxy,rajiv65/zaproxy,Harinus/zaproxy,NVolcz/zaproxy,thc202/zaproxy,Harinus/zaproxy,kingthorin/zaproxy,zapbot/zaproxy,rajiv65/zaproxy,thc202/zaproxy,gsavastano/zaproxy,zaproxy/zaproxy,meitar/zaproxy,kingthorin/zaproxy,psiinon/zaproxy,gmaran23/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,rajiv65/zaproxy,thc202/zaproxy