Improved detect

detect.sh now also looks for index.php in the doc root and public/ folders.