I don't have any help for the program being disabled unfortunately. I have seen where one APP is enabled when I back up my setup and yet it is disabled on restore (jkutils solar altitude).
On a different note, you probably don't need this script in the first place. Unless you are doing something more complex than turning a light on/off at a given time, you can actually just use the scheduled on/off code that's built in. I've been using this script since it was incorporated and, outside of some strange setup fluke in my system at one time, it's always worked correctly.