Changed hard coded build variables to environment variables.