made this version of the script work with my files
Included .gitignore in the repo