Move hasMarkdownFileExtension to util