Update functions

Make sure the new local gets regenerated when upgrading the system.