Modified targets to use multiple build files.
Modified script to set env vars for version and type.