Correct the logic for the doc makefile helpers to make it prefer pure text