cp -r distrib/share/tcl ${installDir}/share/tasyag
-echo "AVERTEC_TOP=`pwd`/distrib/share" > "${installDir}/avt_env.sh"
-echo "PATH=`pwd`/distrib/bin"':${AVERTEC_TOP}/tcl:${PATH}' >> "${installDir}/avt_env.sh"
-echo 'export AVERTEC_TOP' >> "${installDir}/avt_env.sh"
+# Shell script for exporting the AVERTEC_TOP and PATH vars
+avtEnvScript = "${installDir}/bin/avt_env.sh"
+echo "AVERTEC_TOP=`pwd`/distrib/share" > "${avtEnvScript}"
+echo "PATH=`pwd`/distrib/bin"':${AVERTEC_TOP}/tcl:${PATH}' >> "${avtEnvScript}"
+echo 'export AVERTEC_TOP' >> "${avtEnvScript}"