Added check for .md file extension when saving to Dropbox.

Fixes #244