modify script for proprietary files

Change-Id: I33f64e2547e18b7594ed3aa773213d6888e39ae1