Fix RebuildLuceneDocsIndex to use new Markdown parser

Previously, it was attempting to use the already removed Markdown class.
Also some minor permission / indentation fixes.