Fix the breaking of scripts when renaming them. Possibly may screw up other things with task inventory updating (but I've check the normal stuff and it's fine...)