Make this compile in Windows

Replace `generate` by a python script
Use the `regex` crate within Rust to replace awk

* Also removed mimes.txt, as we download it each time we run cargo build.