Remove index.html files and defined BASEPATH check