changed how the environment and site strings were concatenated when a batch script is created to prevent trailing commas