Changed File.renameTo to FileUtils.moveFile, which will work across filesystems.