Fix tpl_basedir to use the supplied template

Previously only the path for the configured template was returned and
the parameter was ignored.
Fix the js and css cache seed to contain the update version