Add renaming to work with non-.md inputfile extensions.