Use FileUtils.cp_r instead of calling system()