moving index.html file deletion to after wordpress dir create