Update scripts to be template files so that the Autoconf can fill in the correct shell path in the sha bang.
Add AC_PATH_PROG macros to detect the paths of ZSH and Bash and AC_SUBST them.