KARAF-3288 Update script to correctly set JAVA_HOME on Solaris