fixed jdheadless to use local copy of jre