Fix module activation from notification

Actually write the module list to disk.