Fix delete events on linux
Add test for modifying file attributes