Provide better error messages for "unknown" project types

Fixes bug #10032