[#47547449] recursively set readonly on public and make it writable again before we try to delete it as part of the deploy builds