Default package "main" to "index". Fixes #719.

This is a fix for #719. I have tested this locally and it seems to do the trick.