change mogenerator script

should now work even if versions of model file