Fix Lucene tests - check if the directory exists before trying to clean it up.