check for duplicate elements in files

Change-Id: Id114b3f2a2a27d03d0082a528f9d62f16535894d