- add slash if webroot is an empty string
- added comment