I'm this blog post (and script) author. I got some opinions and code review feedback here, on Reddit, and blog itself. And I appreciate it!
I updated the script template applying the most commonly mentioned things, like removing "cd" to the directory. See details in the article.