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