Fixed BUILD_CONFIG check