#236: only watch directory for files that was closed in writeable mode