Fix .NET 3.5 profile detection