Fix method cleanDir()