Only autowrite to disk if modified

To prevent inotify and other filesystem watchers from going crazy