[backend] Use better method for copying files in build.