fix extract-files.sh script