Use the correct variable to determine build success.