Fixed incorrect check for .NET 2.0