Ad common extract-files script

Change-Id: I73a8b71377d5613c0daa10147ec1f47ac410f806