Updated to use an environment variable to determine if we should do a debug build (usually not)