Fix HTML output path generation with uplevels