Possibly you did not set SED to run your script?
Otherwise, is it .c extention on your current script or not?
If your using lite c you need the script to be lite c or vica versa.
Just trying to help.