Improvements for handling metadata files when captured with inotify