Check if there is a web.config file 

In strange cases a web project may not have a web.config file. These changes check for a web.config file.