Improved detect script to look for sln file as well.