modify script for extract proprietary files

Change-Id: Ie99d8771ac9d2f0d2b1d15da8e9d52ee32ad56f8