Updated build script in order to take into account a notion of environment (production, staging, etc).