It requires rename command, which can be acquired with brew install rename but if possible, it'd be better not to require it. It can be replaced with a < 50 line Go program inside the repo, that way no external dependencies are needed.
rename isn't a standard POSIX tool, and different Linux distributions ship different tools (with entirely different interfaces) under that name. For example, on my system, rename looks like this: rename [options] expression replacement file..., and the patterns look like shell globs, not like regular expressions. On my system, your version of rename would be perl-rename.
This should probably be written with find -exec instead.
This is a smaller task extracted from #36:
@dominikh also wrote about the downsides of relying on this command in https://github.com/gopherjs/gopherjs.github.io/pull/41#discussion_r53561630:
This issue is to track that.