Changed checking for first markdown file to use utils.
Will cover all variations in extension for markdown.