Made template.bash less stupid and concatenated several lines