We could possibly move it within fail2ban-testcases --all-versions to cause it do the same thing what this little bash script is doing.  Should then be cleaner then yet another tiny script -- what do you think?