Fixed up the file name handling for AsciiDoc and MarkDown files.