strip duplicate `md` in filename