Use of templates to create the source file to store HADOOP_BAM env variable