Fixed copying files issues with build scripts.