Fix removal of APPPATH in index.php