Truncate fixes

Fix the issues in #3 + add some more testing
I'd like to merge this but the watch on the dir doesn't work for dirs with permission not allowing a user to watch said dir, when a user can watch the a file in the dir.