Fix the check for .html extension.