Add lame workaround around the JRE/JDK separation bug (DATASET-679)