Simplify process for creating new directory or new file
For indexChain, don't double-list the index.html entry