Overwrite read-only files when copying content into the buildroot.
Fixed crash running on newer versions of glibc