i777: cleanup extract script

Change-Id: Icfd66665111839bf690cd9f93dbfabd5ae25be47