Make the shellscript templatable with the prefix, check for minimal version
of python, update Makefile to use m4 to process the template shellscript,
and remove misc executable flags on things that don't need to be executable.