Fixing macro subgenerator

The macro subgenerator was generating the wrong file extension.