making use of template file rather than a template string for ini file and few related fixes

Also adding 'bash' before run_test.sh since run_tests fails due to permission issue.