Fixes for 5.0.0-beta2 download pages

- ports changes from #12 to support new JARs in BF downloads pages
- fixes variable initialization in `gen.py`