Fixes #217. Fixes issue where ending slash is included in config.siteRoot