Using dynamic variable for JAVA_HOME