modify script for proprietary files

Change-Id: Iff318969cd52625a8d1bee78ad4ad81b1200e2be