Update autogen script to use regular expressions for the comments instead of plain strings (allows for multiple comment styles)