Only panic when listing index.html

Fixes #1