fixed php template to use index.html if present [ci skip]