fixed bug with path expansion for html template file