Modified the generator for JBDS based Forge wizards.

The index file is now constructed by parsing the view directory names instead of relying on the names supplied by the scaffold-x plugin. This is done because the JBDS 7 wizard invokes the plugin multiple times, supplying an entity each time.