HTML: harden the path resolution

"Fixes" the /../-issue, and avoids trying to open directories.
Merge branch 'master' of github.com:varnish/vagent2