Added basename filtering for security when generating TOCs and filename references in minified files