bugfix: handle path delimitter replacement in templates correctly
remove unused variable