Revert "Index file not created during init"

This reverts commit 4cda279c401a715e124dd689867c5aaa2fb2186c.