Update BashTemplate.sh

Fixed a bad variable in the log() function