attempted to improve path settings in SS_html

Thanks to Simon Hoyle for pointing out some issues. This may not fix
them.