Fixed downloading mainfile with includes