Modified the location of the generated index page.

The index page is now created in the target directory. This is
done mostly to prevent overwriting an existing file that may also
have been created by a different scaffold provider.