Initialise fake JAVA_HOME in tests.