Improve post detection

Finding only files that end in ".md", rather than finding all files that
aren't directories, is a better solution: it was displaying Vim swap
files!