Use the new file-ending-predicate function to refactor md-file? and clojure-file?.

fixes #3