#35788 [TECH] Checking if the given report path is a directory, in which
case the report will be called report.html