Fix printing of error message when .net framework 4.0 is missing

refs http://teampulse.telerik.com/view#item/281235
Merge pull request #619 from Icenium/totev/fix-undefined

Fix printing of error message when .net framework 4.0 is missing