Fixed an issue where the root directory would be represented in the output and folder names caused problems in the html