[BUGFIX] Strip trailing slashes from templateRootPath (fixes #138)