Fixed a bug where too many or too few /'s were written to HTML files