workaround for faulty endif in Morrowind scripts