Use FileUtils.mv instead of system "mv".