Autodetect literate files (fix #58)

Does not act on #55.