FileUtils.cp_r doesn't seem to be working as I expect, so using manual file copying.