modify extract-files.sh for check locale dir

Change-Id: I6851c1dc06b8bbdabef6581249f9833cc585959c