added support for environment variables in the build process