fix check of USE_SYSTEM_PROJECT