The “official” version of make_fragments.pl is the one at Rosetta/tools/fragment_tools/make_fragments.pl
The issue with make_fragments.pl is that it needs to be edited to tell it where to find all the other applications and databases it uses. So people often copy the file to make changes to it. That’s the case with the variation in the demos directory — the differences are just differences from where different authors adjusted the script for their different environment. (And if you use it on your machine, you’ll likely have to change things around, as well.)
The other issue is that the demos/ versions are copied from an older version of make_fragments.pl — I don’t know if there’s modifications in them for use specifically with peptides (versus longer proteins).
You can try to use the one in tools/, but if you run into issue with peptides, you may want to try using the one with the peptide demos.