Update data directory checking condition.
Use FileUtils#moveDirectory() instead of File#renameTo()