Update Debug.php

The above change allows you to actually override the path. As is, the whole call to `ErrorPage::get_filepath_for_errorcode` is pointless. Would it be possible to port this to the 3.1 branch too?