configure.sh,download.sh: allow to provide generic templates