Improved detect

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