manage JAVA_HOME and more defaults values