I worked on the menu problem for over an hour last night. No dice. It only took a few minutes to solve this morning. The drugs must be wearing off:
item.file = item.path # should be "item.file = item.page"!! ? "${item.path}/index.html" : "${item.path}.html";