fix template in functions.sh and sagan.conf