Fix #962 Module docs named other than index

If the name of the doc file is included in the URL segments use the name
instead. Continue defaulting to index if the file name is not included.