Do not write a file it has the same content

Change-Id: Ieff9bd595bf7c9a662da6f2c5de2e0903d17ed5e