Handle nested ifdef in generate.py …
This is required to properly handle the BEQ instruction with compressed instructions disabled. Currently in this case invalid verilog output is produced.