I updated with your new changes. And yes, it worked very nicely. Thanks Tom.
-Kiran
P.S. Few observations:
1. Seems like drop script does not drop everything necessary to clean up the package. I had to do followings -
a) delete from acs_objects where object_type ='cronjob';
b) delete from acs_object_types where object_type = 'cronjob';
2. It would nice to filter out the ^M characters from the TCL section text. My script failed because of the ^M characters.