modify script for extract proprietary files

Change-Id: I90c4cd624e5a257370599dd650b0cf0a64709d71