Make this compile in Windows

Replace `generate` by a python script
Use the `regex` crate within Rust to replace awk