create a thread to watch the file system