fix capturing group bug for filename pattern in DirectoryWatchLogger.