Made sure script update works without installing Java, patch Mat.java to
remove finalize()