This part adds and md extension if it wasn't found.