Improves ruby scripts for generating tests and flash and html5 builds.