Add support for environment when downloading files. This helps with setting a proxy
Add comma
rename variable as it causes an issue with puppet environments