Fixes 1.8.7 compatibility issue

[*nil] expands to [nil] in 1.8.7, to [] in 1.9+
Adds save-on-shutdown and periodic save