Fix mistbuild script