I did a manual compile of 3.1.1 and re-used the script (slightly modified) and it appears the issue disappeared with the new version. Reboots no longer causes it to fail to load.
I did a manual compile of 3.1.1 and re-used the script (slightly modified) and it appears the issue disappeared with the new version. Reboots no longer causes it to fail to load.