Is "sid" a variable on line 30 of your script?

If not (and this is only a guess as I don't know or use kix2exe) you may have configured the package to run one of your non-KiXtart files in the KiXtart command interpreter.