Corrects directory handling for SSI

Also sets the host environment variable now.
Merge branch 'webserver' of https://github.com/mgreter/webmerge into webserver