use absolute path when copying files. (fix-up)

Sorry about the mistake, this is a fix-up for 32eed43efe309c035bbf352e4abd2dba0a5423f0.