template file related changes and few related fixes. check commit id for details.

Would it be possible to have a single read_config_option() method in tcutils/utils.py and let others refer to this ?