Discover when .net 4.0 is not installed and give a proper error message

Fixes http://teampulse.telerik.com/view#item/281235
Merge pull request #587 from Icenium/totev/net40

Discover when .net 4.0 is not installed and give a proper error message