Update crash.sh

Handle case where JAVA_HOME is not defined