Fix templates.cfg config error and deleted temp file

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>