fix check for java home